package com.nova.edc.model.system;

import java.util.Date;

import com.nova.frame.annotation.Id;
import com.nova.frame.annotation.Join;
import com.nova.frame.annotation.Table;
import com.nova.frame.annotation.Transient;
import com.nova.module.filter.annotation.FilterCondition;

@Table("t_mapcustomerinfo")
public class CustomerRegion {
    @Id
    private Integer id;
    @FilterCondition
    private String companyregion;
//    @Join(fieldName = "companyregion", table = Region.class, joinColumn = "RegionName", tableJoinColumn = "RegionCode")
    private String companyregionname;
    private Integer positionx;
    private Integer positiony;
    private String savetarget;
    private String memo;
    private Integer scrapped;
    private Date modifystamp;
    private String addby;
    private Date adddate;
    private String modifyby;
    private Date modifydate;
    @Join(fieldName = "customerinfoid", table = CustomerInfo.class, joinColumn = "CustomerName")
    private String customername;
    private Integer companycode;
    private String moneysavetarget;
    private String companyaddress;
    @FilterCondition
    private Integer customerinfoid;

    @Transient
    private Integer companycount;

    public Integer getCompanycount() {
        return companycount;
    }

    public void setCompanycount(Integer companycount) {
        this.companycount = companycount;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getCompanyregion() {
        return companyregion;
    }

    public void setCompanyregion(String companyregion) {
        this.companyregion = companyregion;
    }

    public String getCompanyregionname() {
        return companyregionname;
    }

    public void setCompanyregionname(String companyregionname) {
        this.companyregionname = companyregionname;
    }

    public Integer getPositionx() {
        return positionx;
    }

    public void setPositionx(Integer positionx) {
        this.positionx = positionx;
    }

    public Integer getPositiony() {
        return positiony;
    }

    public void setPositiony(Integer positiony) {
        this.positiony = positiony;
    }

    public String getSavetarget() {
        return savetarget;
    }

    public void setSavetarget(String savetarget) {
        this.savetarget = savetarget;
    }

    public String getMemo() {
        return memo;
    }

    public void setMemo(String memo) {
        this.memo = memo;
    }

    public Integer getScrapped() {
        return scrapped;
    }

    public void setScrapped(Integer scrapped) {
        this.scrapped = scrapped;
    }

    public Date getModifystamp() {
        return modifystamp;
    }

    public void setModifystamp(Date modifystamp) {
        this.modifystamp = modifystamp;
    }

    public String getAddby() {
        return addby;
    }

    public void setAddby(String addby) {
        this.addby = addby;
    }

    public Date getAdddate() {
        return adddate;
    }

    public void setAdddate(Date adddate) {
        this.adddate = adddate;
    }

    public String getModifyby() {
        return modifyby;
    }

    public void setModifyby(String modifyby) {
        this.modifyby = modifyby;
    }

    public Date getModifydate() {
        return modifydate;
    }

    public void setModifydate(Date modifydate) {
        this.modifydate = modifydate;
    }

    public String getCustomername() {
        return customername;
    }

    public void setCustomername(String customername) {
        this.customername = customername;
    }

    public Integer getCompanycode() {
        return companycode;
    }

    public void setCompanycode(Integer companycode) {
        this.companycode = companycode;
    }

    public String getMoneysavetarget() {
        return moneysavetarget;
    }

    public void setMoneysavetarget(String moneysavetarget) {
        this.moneysavetarget = moneysavetarget;
    }

    public String getCompanyaddress() {
        return companyaddress;
    }

    public void setCompanyaddress(String companyaddress) {
        this.companyaddress = companyaddress;
    }

    public Integer getCustomerinfoid() {
        return customerinfoid;
    }

    public void setCustomerinfoid(Integer customerinfoid) {
        this.customerinfoid = customerinfoid;
    }
}
